package flex.cc.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import flex.cc.store.dto.entity.BookingInfoEntity;
import flex.cc.store.dto.vo.BookingInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Map;


/**
 * @author wkangle
 * @className BookingInfoDao
 * @description 预约信息dao
 * @time 2021-12-16 11:10:57
 */
@Mapper
@Repository
public interface BookingInfoDao extends BaseMapper<BookingInfoEntity> {

    /**
     * @param params 查询参数
     * @return
     * @description 根据参数查询预约信息实体
     * @author wkangle
     * @time 2021-12-16 11:11:37
     * @exception/throws
     */
    BookingInfoVo getOneByParams(Map<String, Object> params);


    /**
     * @description 根据卡券使用规则校验卡券是否可用
     * @param params 卡券类型、车牌号
     * @return
     * @author wkangle
     * @time 2021/12/19 0019 19:33
     * @exception/throws
     */
    int checkCouponRule(Map<String, Object> params);

}
